<!-- target:edit -->
<form class="grey-bg flex-cont vertical-arrangement" name="editProjectRoundForm" ui="type:m-panel">
    <div class="blank-24"></div>
    <input name="project" ui="type:ecui.esr.CreateObject"class="ui-hide">
    <div class="edit-item inline-radio" ui="type:mao.ui.InputGroup;label:当前场次创建在;required">
        <div class="edit-input radio project-radio">
            <!-- var:disable = ${id} ? 'disabled' : '' -->
            <div ui="type:NS.HasProjectRadio;name:hasProject;value:1;={${id} ? 'checked' : ''};${disable}">
                <span>已有项目下</span>
                <span class="icon"></span>
            </div>
            <div ui="type:NS.HasProjectRadio;name:hasProject;value:2;={${id} ? '' : 'checked'};${disable}">
                <span>新建项目下</span>
                <span class="icon"></span>
            </div>
        </div>
    </div>

    <!-- if:${id} -->
    <input name="project.id" ui="type:text" class="ui-hide" value="${detail.project.id}">
    <!-- /if -->
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:项目;required">
        <div class="edit-input" ui="type:mao.ui.SelectEdit;id:project-id;title:项目;view:projectSelectPage;name:projectId;value:${detail.project.id};text:={${detail.project.projectContent} || '请选择'};regexp:.+;${disable}"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item ui-textarea" ui="type:mao.ui.InputGroup;label:日程内容;required">
        <div ui="type:text;regexp:.+" class="edit-text">
            <textarea name="project.projectContent" placeholder="请输入日程内容">${detail.project.projectContent}</textarea>
        </div>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:项目类型;required">
        <!-- var:projectTypes = ${mao.info.baseInfo.projectType} || [] -->
        <div class="edit-input" ui="type:mao.ui.SelectEdit;title:项目类型;mutil;name:project.projectTypeList;items:&{projectTypes};value:${projectTypeIds};text:={${projectTypeDesc} || '请选择'};regexp:.+"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:联系人;required">
        <div ui="type:text;value:;regexp:.+;" class="edit-text">
            <input type="text" name="project.contact" value="${detail.project.contact}" placeholder="请输入" value="" />
        </div>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:手机号码;required">
        <div ui="type:text;value:;regexp:.+;" class="edit-text">
            <input type="text" name="project.tel" value="${detail.project.tel}" placeholder="请输入" value="" />
        </div>
    </div>
    <div class="edit-item m-b-0" ui="type:mao.ui.InputGroup;label:主办方;">
        <div class="edit-input" ui="type:mao.ui.SelectEdit;title:主办方;view:sponsorSelectPage;name:project.sponsorId;value:${detail.project.sponsorId};text:={${detail.project.sponsorName} || '请选择'};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="blank-24"></div>
    <input name="projectRound" ui="type:ecui.esr.CreateObject"class="ui-hide">
    <!-- if:${id} -->
    <input name="projectRound.id" ui="type:text" class="ui-hide" value="${detail.id}">
    <!-- /if -->
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:开始时间;required">
        <div class="edit-text " ui="type:mao.ui.MTimerCalendar;name:projectRound.startTime;value:${start|dateFormat('yyyy-MM-dd HH:mm:ss')};regexp:.+">
            <div ui="values:2000-2040;format:{0}年"></div>
            <div ui="values:1-12;format:{0}月"></div>
            <div ui="values:1-31;format:{0}日"></div>
            <div ui="values:0-23;format:{0}时"></div>
            <div ui="values:0-59;format:{0}分"></div>
            <div ui="values:0-59;format:{0}秒"></div>
        </div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:结束时间;required">
        <div class="edit-text " ui="type:mao.ui.MTimerCalendar;name:projectRound.endTime;value:${end|dateFormat('yyyy-MM-dd HH:mm:ss')};regexp:.+">
            <div ui="values:2000-2040;format:{0}年"></div>
            <div ui="values:1-12;format:{0}月"></div>
            <div ui="values:1-31;format:{0}日"></div>
            <div ui="values:0-23;format:{0}时"></div>
            <div ui="values:0-59;format:{0}分"></div>
            <div ui="values:0-59;format:{0}秒"></div>
        </div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:场次名称;required">
        <div ui="type:text;regexp:.+;" class="edit-text">
            <input type="text" name="projectRound.roundName" value="${detail.roundName}" placeholder="请输入" />
        </div>
    </div>
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:选择场馆;required">
        <!-- var:venues = ${venues} || [] -->
        <div class="edit-input" ui="type:NS.VenueSelectEdit;title:选择场馆;name:projectRound.venueId;items:&{venues};view:venue_single_select;value:${detail.venueId};text:={${detail.venueName} || '请选择'};regexp:.+"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item inline-radio m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:场地;required">
        <div class="edit-input radio">
            <!-- for:${yards} as ${item} -->
            <div ui="type:Radio;name:projectRound.yardId;value:${item.id};={${detail.yardId} === ${item.id} ? 'checked' : ''}">
                <span>${item.name}</span>
                <span class="icon"></span>
            </div>
            <!-- /for -->
        </div>
    </div>
    <div class="edit-item ui-music-poples m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:音乐人;required">
        <!-- var:musicians = ${detail.musicians} || [] -->
        <div ui="type:mao.ui.MusicPople;value:;musicians:&{musicians};title:音乐人选择" class="edit-text ui-pople-list">
            <input name="projectRound.musicianIds" type="text" class="input-array" />
            <div class="label">
                <div class="title">音乐人</div>
                <div class="tip">请选择音乐人</div>
            </div>
            <ul class="people-items"></ul>
            <div class="people-add"><img src="images/order/add_gray.png" />添加</div>
        </div>
    </div>
    <div class="edit-item inline-radio m-b-0" ui="type:mao.ui.InputGroup;label:锁定场次;required">
        <div class="edit-text tr p-r-30">
            <span ui="type:b-switch;name:projectRound.state;value:1;={${detail.state} ? 'checked' : ''}" class="state-switch inline-block"></span>
        </div>
    </div>
    <div class="blank-24"></div>
</form>

<div class="edit-btn-box">
    <div class="ui-button save-btn" ui="type:NS.SubmitProjectRound;optId:${detail.id};">
        <span class="icon"></span>
        <span>暂存</span>
    </div>
    <div class="ui-button ui-button-primary submit-btn" ui="type:NS.SubmitProjectRound;optId:${detail.id};">提交</div>
</div>


<!-- target:yardItem -->
<div ui="type:Radio;name:projectRound.yardId;value:${item.id};={${detail.yardId} === ${item.id} ? 'checked' : ''}">
    <span>${item.name}</span>
    <span class="icon"></span>
</div>
